package tg.app.rj.tslx;

import java.rmi.RemoteException;
import psdi.mbo.MboRemote;
import psdi.mbo.MboValue;
import psdi.mbo.MboValueAdapter;
import psdi.security.UserInfo;
import psdi.util.MXException;

public class FldCzrName extends MboValueAdapter
{
  public FldCzrName(MboValue mbovalue)
  {
    super(mbovalue);
  }

  public void action()
    throws MXException, RemoteException
  {
    super.action();
    MboRemote curMbo = getMboValue().getMbo();
    String name = getMboValue().getAttributeName();
    if (name.equalsIgnoreCase("czr"))
      curMbo.setValue("a_czr", curMbo.getUserInfo().getDisplayName());
    else if (name.equalsIgnoreCase("czr1"))
      curMbo.setValue("a_czr1", curMbo.getUserInfo().getDisplayName());
  }
}